<a href="index.php">Home</a> /
<?php
require_once("./include/membersite_config.php");
if(!$fgmembersite->CheckLogin()){
?>

<a href="register.php">Register</a>

<?php
} else {
?>

<a href="logout.php">Log out</a> /
<a href="create_album.php">Create Album</a> /
<a href="albums.php">Albums</a> /
<a href="upload_image.php">Upload image</a> /
<a href="searchindex.php">Search</a>

<?php
}
?>
